<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>javascript 阶段</title>
    <style>
        .container {
            width: 1000px;
            /* height: 400px; */
            margin: 0 auto;
            background-color: blanchedalmond;
        }

        .container > div {
            width: 50px;
            height: 50px;
            text-align: center;
            line-height: 50px;
            border: 1px solid #ccc;
            background-color: #f0f0f0;
            box-sizing: border-box;
            float: left;
        }
        .container > div img {
            vertical-align: middle;
        }

    </style>
</head>
<body>
    <div class="container">
        <!-- <img src="./face/1.gif" alt="图片"> -->
    </div>

    <script>
        var container = document.querySelector(".container");
        for(var i = 0 ; i < 75 ; i ++) {
            var div = document.createElement("div");
            div.innerHTML = '<img src="./face/'+i+'.gif" alt="">';
            container.appendChild(div);
        }
    </script>
</body>
</html>